package com.hnguigu.health.houduan.lcj.mapper_lcj;

import com.hnguigu.health.houduan.lcj.pojo_lcj.TSetmealCheckgroup_lcj;
import com.hnguigu.health.pojo.TSetmealCheckgroup;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TSetmealCheckgroupMapper_lcj {
    int deleteByPrimaryKey(@Param("setmealId") Integer setmealId, @Param("checkgroupId") Integer checkgroupId);

    int insert(TSetmealCheckgroup_lcj record);

    int insertSelective(TSetmealCheckgroup_lcj record);

    TSetmealCheckgroup_lcj selectByPrimaryKey(@Param("setmealId") Integer setmealId, @Param("checkgroupId") Integer checkgroupId);

    int updateByPrimaryKeySelective(TSetmealCheckgroup_lcj record);

    int updateByPrimaryKey(TSetmealCheckgroup_lcj record);

    @Insert("insert into t_setmeal_checkgroup values(#{setmealId},#{checkgroupId},#{createtime},#{updatetime})")
    int addtsetCheck(TSetmealCheckgroup_lcj tSetmealCheckgroup_lcj);

    List<TSetmealCheckgroup_lcj> getBySetID(String tsetid);

    List<TSetmealCheckgroup_lcj> getBycheckID(String tchekid);

    @Delete("delete from t_setmeal_checkgroup where setmeal_id=#{setid}")
    int delBysetid(String setid);
}